home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4103 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  41 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.eunet.fi!nullnet!tna!marcus.alanen
  3. From: marcus.alanen@tna.nullnet.fi (Marcus Alanen)
  4. Subject: Re: *SLOW* colour cycling.. :
  5. Message-ID: <64_5427@tna.nullnet.fi>
  6. References: <311c0fb8@beachyhd.demon.co.uk>
  7. Organization: The New Age BBBS
  8. Sender: news@tna.nullnet.fi (News Administrator)
  9. Date: 16 Feb 1996 21:06:22 +0200
  10.  
  11. > I'm trying to make some colour-cycling patterns for a screen saver.
  12. > However, I'm having a few problems getting the cycling to work..
  13.  
  14. > I've opened a DBLPAL:Lores screen with 8 bitplanes, and drawn my
  15. > 256-colour patterns on it. Now it comes to the cycline routines. I've
  16. > set up 3 arrays of 256 ULONGS, each array containing all the values for
  17. > the Red, Green and Blue parameters of SetRBG32() for the palette.
  18.  
  19. > Now to cycle I use the following code:
  20.  
  21.     which I understand little of... Anyway, is there any possibility
  22.     to use *two* palettes one after another that are identical?
  23.     Like this: (number represents colour register, X position
  24.     is the "address")
  25.  
  26.               111111          111111
  27.     01234567890123450123456789012345
  28.  
  29.  
  30.     So that you do a Palette() call from the beginning (x=0)
  31.     and then after each cycle add a constant to x, so that
  32.     the next Palette() information is taken from the address
  33.     x=2 or something like that.
  34.  
  35.     Could you amazing coders please say why this easy method
  36.     can't be used, since I'm a crap coder.
  37.  
  38.  
  39.     Marcus Alanen
  40.     marcus.alanen@tna.nullnet.fi
  41.